import request from '@/utils/requestExam'

// 查询项目列表
export function listProjectInfo(query) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamProjectInfoRest/searchByPage/v1',
    method: 'post',
    data: query
  })
}

// 根据项目Id查询项目详细信息
export function getProjectByProjectId(projectId) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamProjectInfoRest/findById/' + projectId,
    method: 'get'
  })
}

// 根据项目代码查询项目详细信息
export function getProjectByProjectCode(projectCode) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamProjectInfoRest/projectCode/' + projectCode,
    method: 'get'
  })
}

// 新增项目信息
export function addProject(data) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamProjectInfoRest/insertProjectInfo/v1',
    method: 'post',
    data: data
  })
}

// 修改项目信息
export function updateProject(data) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamProjectInfoRest/updateProjectInfo/v1',
    method: 'put',
    data: data
  })
}

// 删除项目业务
export function delProject(projectCodes) {
  return request({
    url: '/api/uf/boostor/exam/certinfo/ExamProjectInfoRest/remove/' + projectCodes,
    method: 'delete'
  })
}
